package com.ibmeeting.utils.enums;

public enum ErrorCodeEnum {
    // 通用错误
    PARAM_ERROR(400001, "参数错误"),
    UNAUTHORIZED(401001, "未授权访问"),
    NOT_FOUND(404001, "资源不存在"),
//    NOT_FOUND(404002, "当前系统没有开启注册功能！"),
    INTERNAL_ERROR(500001, "服务器内部错误");

    private final int code;
    private final String message;

    ErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() { return code; }
    public String getMessage() { return message; }
}